package kr.hkit.Powerjava.chapter09.work;

public class Circle {
	
	private int radius = 0;
	private Point center;
	private double area;



	public Circle(Point center,int radius) {
		super();
		
		this.radius = radius;
		this.center = center;
		
		
	}

	public double area() {
		area = radius*radius*(double)Math.PI;
		return area;
	}
	


	public void setRadius(int radius) {
		this.radius = radius;
	}


	public Point getCenter() {
		return center;
	}

	public void setCenter(Point center) {
		this.center = center;
	}

	public int getRadius() {
		return radius;
	}

	@Override
	public String toString() {
		return String.format("Circle [radius=%d, center=%s, area=%.3f]", radius,
				center, area());
	}


}
